.clearfix:before {
    display: table;
    content: '';
}
.clearfix:after {
    display: table;
    content: '';
}
.clearfix:after {
    clear: both;
}

.gallery-container {
    margin: 0 auto;
    .item {
        height: 190px;
        .wrapper {
            float: left;
            margin-top: 60px;
            h2 {
                font-weight: normal;
                font-size: 30px;
            }
            p {
                margin-top: 10px;
            }
        }
        .icon {
            width: 100px;
            height: 20px;
            float: right;
            margin-top: 70px;
            span {
                display: inline-block;
                width: 25px;
                height: 20px;
                margin-left: 10px;
                background-image: url("../img/galler-icon.png");
            }
            .share {
                background-position: -22px 0;
            }
        }
    }
    .banner {
        position: relative;
        width: 100%;
        .banner-content {
            .inner {
                img {
                    width: 100%;
                    height: auto;
                }
            }
        }
        .arr {
            z-index: 9999;
            width: 100%;
            position: absolute;
            top: 50%;
            display: none;
            span {
                display: inline-block;
                width: 30px;
                height: 55px;
            }
            .pre {
                float: left;
                margin-left: 2%;
                background-image: url("../img/index-porit.png");
            }
            .next {
                float: right;
                margin-right: 2%;
                background-image: url("../img/index-porit.png");
                background-position: 29px 0;
            }
        }
        .aside {
            position: absolute;
            width: 7%;
            height: 100%;
            top: 0;
            background: #000;
            opacity: 0.1;
            display: none;
        }
        .aside-left {
            
            left: 0;
        }
        .aside-right {
            right: 0;
            
        }
       &:hover .arr{
           display: block;
       }
        &:hover .aside{
            display: block;
        }
    }
    .list {
        width: 100%;
        margin: 0 auto;
        padding: 30px 0 0;
        .wrapper {
            .article {
                position: relative;
                width: 70%;
                float: left;
                margin-bottom: 25px;
                .inner {
                    width: 95%;
                    margin: 0 auto;
                    h3 {
                        color: #373a4e;
                        opacity: 0.8;
                        font-size: 22px;
                    }
                    p {
                        margin-top: 30px;
                        color: #a2a3af;
                        font-size: 12px;
                        line-height: 15px;
                    }
                    .button {
                        font-size: 12px;
                        margin: 30px 0;
                        span {
                            display: inline-block;
                            width: 120px;
                            height: 35px;
                            border-radius: 30px;
                            text-align: center;
                            line-height: 35px;
                        }
                        .butt1 {
                            color: #fff;
                            background: black;
                            border: 1px solid #000;
                        }
                        .butt2 {
                            color: #ccdb38;
                            background: #fff;
                            border: 1px solid #ccdb38;
                            margin-left: 20px;
                        }
                    }
                }
            }
            .asides {
                position: relative;
                width: 20%;
                float: right;
                .inner {
                    width: 86%;
                    margin: 0 auto;
                    h3 {
                        opacity: 0.8;
                        color: #373a4e;
                        font-size: 25px;
                        font-weight: normal;
                    }
                    .art {
                        margin-top: 15px;
                        .details {
                            font-size: 14px;
                            padding-top: 10px;
                            color: #cecfd4;
                            .icon {
                                display: inline-block;
                                width: 16px;
                                height: 16px;
                                margin-right: 10px;
                                margin-top: 5px;
                            }
                            .icons-clock {
                                background-image: url("../img/icon-label.png");
                            }
                            .icons-lable {
                                background-image: url("../img/icon-label.png");
                                background-position: 0 -16px;
                            }
                            .icons-briefcase {
                                background-image: url("../img/icon-label.png");
                                background-position: 0 -32px;
                            }
                            .icons-view {
                                background-image: url("../img/icon-label.png");
                                background-position: 0 -49px;
                            }
                            .icons-heart {
                                background-image: url("../img/icon-label.png");
                                background-position: 0 -64px;
                            }
                            .detailed {
                                color: #9698a4;
                            }
                            .deta {
                                color: #00BEF2;
                            }
                        }
                    }
                }
            }
        }
    }
    .related {
        position: relative;
        width: 100%;
        height: 196px;
        background: #FAFAFA;
        .listing {
            position: relative;
            .inners {
                width: 70%;
                float: left;
                h1 {
                    opacity: 0.8;
                    color: #373a4e;
                    font-size: 30px;
                    font-weight: normal;
                }
                p {
                    width: 452px;
                    height: auto;
                    font-size: 12px;
                    line-height: 20px;
                    color: #a4a6b0;
                }
            }
            .porit {
                width: 12%;
                float: right;
                margin-top: 100px;
                ul {
                    list-style: none;
                    li {
                        float: left;
                        width: 8px;
                        height: 8px;
                        border-radius: 100%;
                        margin-left: 6px;
                        background: #e0e0e0;
                    }
                    .on {
                        background: #00ACDA;
                    }
                }
            }
        }
    }
    .focus {
        position: relative;
        margin: 0 auto;
        width: 100%;
        height: auto;
        ul {
            list-style: none;
            margin: auto;
            height: auto;
            overflow: hidden;
            .box {
                cursor: pointer;
                max-height: 336px;
                overflow: hidden;
                position: relative;
                width: 25%;
                float: left;
                &:hover .gallery-mask {
                    opacity: 0.5;
                }
                //              &:hover h3{
                //                 font-size:30px;
                //              }
                //               &:hover .name{
                //                   top: 78px;
                //                 font-size:18px;
                //              }
                &:hover img {
                    transform: scale(0.7,0.7);
                }
                .gallery-mask {
                    position: absolute;
                    transition-duration: 0.2s;
                    opacity: 0;
                    left: 0;
                    top: 0;
                    overflow: hidden;
                    height: 100%;
                    width: 100%;
                    background-color: #00c3b6;
                    z-index: 10;
                }
                img {
                    transition: transform 1s;
                    width: 100%;
                    height: 100%;
                    display: block;
                }
                h3 {
                    transition: all 1s;
                    position: absolute;
                    color: #fff;
                    top: 20px;
                    left: 30px;
                    font-weight: normal;
                    word-spacing: -3px;
                }
                p {
                    position: absolute;
                    color: #fff;
                    left: 30px;
                    font-size: 12px;
                    word-spacing: -5;
                }
                .name {
                    word-wrap: break-word;
                    /*自动换行*/
                    top: 50px;
                    transition: all 1s;
                    &:hover {
                        color: #00ACDA;
                    }
                }
                &:hover .chose {
                    bottom: 83px;
                }
                .chose {
                    padding: 10px;
                    width: 100%;
                    left: 0;
                    bottom: 0;
                    z-index: 30;
                    transition: all 1s;
                    transform: translateY(60px);
                    word-spacing: 0;
                    button {
                        position: absolute;
                        top: -8px;
                        float: right;
                        right: 55px;
                        width: 35px;
                        height: 35px;
                        border: 0 solid #222629;
                        border-radius: 100%;
                        background: #222629;
                        background-image: url("../img/index-arrow.png");
                        background-size: 35px;
                        &:hover {
                            cursor: e-resize;
                        }
                    }
                }
            }
        }
    }
    .back {
        width: 100%;
        position: relative;
        margin: 30px 0;
        .poto {
            width: 80%;
            margin: 0 auto;
            .button {
                width: 140px;
                height: 35px;
                border: 1px solid #CECED8;
                border-radius: 20px;
                span {
                    display: inline-block;
                    font-size: 12px;
                    line-height: 35px;
                    color: #CECED8;
                }
                .icon {
                    width: 9px;
                    height: 9px;
                    margin-left: 15px;
                    background-image: url("../img/common-arrow.png");
                }
            }
        }
    }
}
//平板
@media only screen and (min-width: 768px) and (max-width: 1250px) {
    .content {
        width: 100%;
    }
    .gallery-container {
        .item {
            height: 160px;
            .wrapper {
                margin-left: 30px;
            }
        }
       
        .list {
            .wrapper {
                .article {
                    width: 100%;
                    float: none;
                    margin-bottom: 25px;
                    padding-left: 30px;
                    padding-right: 30px;
                    .inner {
                        p {
                            width: 93%;
                        }
                    }
                }
                .asides {
                    width: 100%;
                    float: none;
                }
            }
        }
        .related {
            width: 100%;
            height: 160px;
            .listing {
                width: 90%;
                .inners {
                    width: 100%;
                    float: none;
                    margin-top: 5%;
                }
                .porit {
                    width: 100%;
                    float: none;
                    margin-top: 4%;
                    margin-left: 50%;
                }
            }
        }
        .focus {
            ul {
                .box {
                    float: left;
                    width: 100%/3;
                }
            }
        }
    }
}
//手机
@media only screen and (max-width: 768px) {
    .content {
        width: 100%;
    }
    .gallery-container {
        .item {
            height: 160px;
            .wrapper {
                margin-left: 30px;
                margin-top: 53px;
            }
        }
        
        .list {
            .wrapper {
                .article {
                    width: 100%;
                    float: none;
                    margin-bottom: 25px;
                    padding-left: 30px;
                    padding-right: 30px;
                    .inner {
                        p {
                            width: 93%;
                        }
                    }
                }
                .asides {
                    width: 100%;
                    float: none;
                }
            }
        }
        .related {
            width: 100%;
            height: 160px;
            .listing {
                width: 90%;
                .inners {
                    width: 100%;
                    float: none;
                    margin-top: 5%;
                }
                .porit {
                    width: 100%;
                    float: none;
                    margin-top: 4%;
                    margin-left: 50%;
                }
            }
        }
        .focus {
            ul {
                .box {
                    float: left;
                    width: 50%;
                }
            }
        }
    }
}
@media only screen and (max-width: 500px) {
    .gallery-container {
        .item {
            height: 160px;
            .wrapper {
                float: none;
            }
            .icon {
                width: 80%;
                height: 20px;
                float: none;
                margin-top: 42px;
                margin-left: 20px;
            }
        }
        .focus {
            ul {
                .box {
                    width: 100%;
                }
            }
        }
    }
}